import request from '@/utils/request'

// 销售汇总
export function salesSummary(data) {
  return request({
    url: '/erp_api/zhouyz/finance/sales-summary',
    method: 'post',
    data: data
  })
}
// 销售记录
export function salesSummaryDetail(data) {
  return request({
    url: '/erp_api/zhouyz/finance/sales-summary-detail',
    method: 'post',
    data: data
  })
}
// 供应商售卖
export function supplierProductSaleSummary(data) {
  return request({
    url: '/erp_api/zhouyz/finance/supplier-product-sale-summary',
    method: 'post',
    data: data
  })
}
// 进销存统计
export function purchaseSaleStock(data) {
  return request({
    url: '/erp_api/zhouyz/finance/purchase-sale-stock',
    method: 'post',
    data: data
  })
}
// 仓库汇总
export function warehouseSummary(data) {
  return request({
    url: '/erp_api/zhouyz/finance/warehouse-summary',
    method: 'post',
    data: data
  })
}
// 仓配对账
export function warehouseChecking(data) {
  return request({
    url: '/erp_api/zhouyz/warehouse/checking/list',
    method: 'get',
    params: data
  })
}
// 仓配对账详情
export function warehouseCheckingDetail(data) {
  return request({
    url: `/erp_api/zhouyz/order/list-by-status-month/${data.warehouseId}/${data.warehouseId}/${data.checkingMonth}`,
    method: 'get'
  })
}